import request from './request'

export const getHomeList = (data) => {
  return request({
    url: '/api/articleList',
    method: 'POST',
    data
  })
}
export const getPinsList = (data) => {
  return request({
    url: '/api/articleList',
    method: 'POST',
    data
  })
}
export const delArticle = (data) => {
  return request({
    url: '/api/deleteArticle',
    method: 'POST',
    param
  })
}
export const getArticleCommentList = (data) => {
  return request({
    url: '/api/articleInfo',
    method: 'POST',
    data
  })
}
export const addCommentApi = (data) => {
  return request({
    url: '/api/addComment',
    method: 'POST',
    data
  })
}
